from selenium import webdriver
import time
from selenium.webdriver.common.by import By

# 创建驱动
dr = webdriver.Chrome()
# 打开百度
dr.get("https://www.baidu.com")
# 停留三秒
time.sleep(3)
# 找到输入框
e1 = dr.find_element(By.ID,"kw")
# 输入内容
e1.send_keys("建材学院")
time.sleep(5)
# 点击搜索按钮
e2 = dr.find_element(By.ID,"su")
e2.click()
# e2.get_property("src")
time.sleep(3)